import api from './api'


export function getContractPage(data) {
  return api.get('/crm/contract/page', data, { login: false })
}

export function getFlowLog(data) {
  return api.get('/crm/flow-log/page', data, { login: false })
}

export function examine(data) {
  return api.post('/crm/flow-log/examine', data, { login: false })
}


export function getContractNo(data) {
  return api.get('/crm/contract/getCode', data, { login: false })
}


export function createContract(data) {
  return api.post('/crm/contract/create', data, { login: false })
}


export function getContract(data) {
  return api.get('/crm/contract/get', data, { login: false })
}


export function getContractProductListByContractId(data) {
  return api.get('/crm/contract/contract-product/list-by-contract-id', data, { login: false })
}

// 创建订单拆分
export function setSplits(data) {
  return api.post(`/crm/contract/splits`, data)
}

export function updateContract(data) {
  return api.put('/crm/contract/update', data, { login: false })
}


export function check(data) {
  return api.post('/crm/contract/check', data, { login: false })
}

export function getContactsList(data) {
  return api.get('/crm/customer-contacts/list', data)
}

export function getMyOrderList(data) {
  return api.get('/crm/contract/getMyOrderList', data)
}


